import Qt 4.7

Item {
    property int position
    property int total

    height: 12

    Text {
        id: label
        text: position + " / " + total
        anchors.bottom: parent.bottom
    }

    Rectangle {
        anchors { right: parent.right; bottom: parent.bottom; left: label.right; }
        anchors.leftMargin: 10
        color: "#AAA"
        height: 8

        Rectangle {
            color: "#444"
            height: parent.height
            width: position / total * parent.width
        }
    }
}
